package com.teaphy.data;

import com.teaphy.interfaces.Rest;
import com.teaphy.annotations.Explain;

@Explain("a parent class for Student")
public class Person implements Rest {
	private int id;
	public String name;
	
	public Person() {
	}


	public Person(int id) {
		this.id = id;
	}

	public Person(String name) {
		this.name = name;
	}


	public Person(int id, String name) {
		this.id = id;
		this.name = name;
	}

	public int getId() {
		return id;
	}

	protected void setId(int id) {
		this.id = id;
	}

	String getName() {
		return name;
	}

	private void setName(String name) {
		this.name = name;
	}
	
	@Override
	public String toString() {
		return "Person{" +
			"id=" + id +
			", name='" + name + '\'' +
			'}';
	}
	
	@Override
	public void doRest() {
		System.out.println("do rest in Person");
	}

	/**
	 * 父母
	 */
	private class Parents{
		String father;
		String mother;
	}

	/**
	 * 性别
	 */
	public enum  Gender {
		WOMAN, MAN
	}
}
